import * as React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';

// import HomeScreen from './src/components/HomeScreen';
import ConfigScreen from './src/components/ConfigScreen';
import HomeScreen from './src/components/HomeScreen';
import {Provider} from 'react-redux';
import store from './src/store';
const Stack = createNativeStackNavigator();

const APP: React.FC = () => {
  return (
    <Provider store={store}>
      <NavigationContainer>
        <Stack.Navigator>
          <Stack.Screen name="home" component={HomeScreen} />
          <Stack.Screen name="settings" component={ConfigScreen} />
        </Stack.Navigator>
      </NavigationContainer>
    </Provider>
  );
};

export default APP;
